package org.samcolon.eeexplore.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Auther: Sam.zhang
 * @Date: 2021/7/22 - 07 - 22 - 0:32
 * @Description: org.samcolon.eeexplore.vo
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TestVO {
    @ExcelProperty(value = {"列1", "字符串标题"}, index = 0)
    private String string;

    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = {"列1", "日期标题"}, index = 1)
    private Date date;

    @ExcelProperty(value = {"列1", "数字标题"}, index = 2)
    private Double doubleData;

    @ExcelProperty(value = {"列2", "数字标题"}, index = 3)
    private Double doubleData2;

    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;
}
